package com.ronghui.cash.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 订单分期表
 * </p>
 *
 * @author wiki
 * @since 2017-12-06
 */
@TableName("orders_fenqi")
public class OrdersFenqi extends Model<OrdersFenqi> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 订单id
     */
	@TableField("orders_id")
	private Long ordersId;
    /**
     * 用户id
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 每期应还金额
     */
	private BigDecimal money;
    /**
     * 实际还的金额
     */
	@TableField("real_return_money")
	private BigDecimal realReturnMoney;
    /**
     * 逾期天数
     */
	@TableField("overdue_day")
	private Integer overdueDay;
    /**
     * 逾期金额
     */
	@TableField("overdue_money")
	private BigDecimal overdueMoney;
    /**
     * 当前期数
     */
	private Integer periods;
    /**
     * 总期数
     */
	@TableField("all_periods")
	private Integer allPeriods;
    /**
     * 每期应还时间
     */
	@TableField("return_money_date")
	private String returnMoneyDate;
    /**
     * 罚款
     */
	private BigDecimal penalty;
    /**
     * 利率
     */
	@TableField("interest_rate")
	private BigDecimal interestRate;
    /**
     * 状态（1：还款中，2：已结清）
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private String createTime;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getOrdersId() {
		return ordersId;
	}

	public void setOrdersId(Long ordersId) {
		this.ordersId = ordersId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public BigDecimal getMoney() {
		return money;
	}

	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public BigDecimal getRealReturnMoney() {
		return realReturnMoney;
	}

	public void setRealReturnMoney(BigDecimal realReturnMoney) {
		this.realReturnMoney = realReturnMoney;
	}

	public Integer getOverdueDay() {
		return overdueDay;
	}

	public void setOverdueDay(Integer overdueDay) {
		this.overdueDay = overdueDay;
	}

	public BigDecimal getOverdueMoney() {
		return overdueMoney;
	}

	public void setOverdueMoney(BigDecimal overdueMoney) {
		this.overdueMoney = overdueMoney;
	}

	public Integer getPeriods() {
		return periods;
	}

	public void setPeriods(Integer periods) {
		this.periods = periods;
	}

	public Integer getAllPeriods() {
		return allPeriods;
	}

	public void setAllPeriods(Integer allPeriods) {
		this.allPeriods = allPeriods;
	}

	public String getReturnMoneyDate() {
		return returnMoneyDate;
	}

	public void setReturnMoneyDate(String returnMoneyDate) {
		this.returnMoneyDate = returnMoneyDate;
	}

	public BigDecimal getPenalty() {
		return penalty;
	}

	public void setPenalty(BigDecimal penalty) {
		this.penalty = penalty;
	}

	public BigDecimal getInterestRate() {
		return interestRate;
	}

	public void setInterestRate(BigDecimal interestRate) {
		this.interestRate = interestRate;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
